package login;

import com.jfinal.core.Controller;
import common.BaseValidator;

public class LoginValidator extends BaseValidator {
    @Override
    protected void validate(Controller c) {
        validateCaptcha("captcha", "msg", "验证码错误");
        validateRequired("username", "msg", "请输入用户名");
        validateRequired("pwd", "msg", "请输入密码");
    }

}
